﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lixun
{
    public class Board
    {
        [Category("接口二")]
        [DisplayName("BoardBarCode")]
        [Description("子板条码")]
        public string BoardBarCode { get; set; } = "";

        [Category("接口二")]
        [DisplayName("Blocknumber")]
        [Description("子板号 01 02")]
        public string Blocknumber { get; set; }
        [Category("接口二")]
        [DisplayName("ComponmentID")]
        [Description(" ComponmentID	元件条码,如果未读到需上传C1-NOREAD	需要添加位置前缀列：C1-p0001")]
        public string ComponmentID { get; set; }
        [Category("接口二")]
        [DisplayName("SKIP")]
        [Description("Skip	X板信息	Y/N   Y表示SKIP")]
        public string SKIP { get; set; }
        [Category("接口二")]
        [DisplayName("ReviseResult")]
        [Description("结果	REPASS/FAIL/PASS")]
        public string TestResult { get; set; }

        [Category("接口二")]
        [DisplayName("Errordetail")]
        [Description("Errordetail 错误列表")]
        [JsonProperty("Errordetail")]
        public List<Errordetail> Errordetails { get; set; }
    }

    public class Errordetail {
        /// <summary>
        /// RefranceID：位置
        /// </summary>
        [Description("位置")]
        public string RefranceID { get; set; }
        /// <summary>
        /// ErrorCode：不良代码
        /// </summary>
        [Description("不良代码")]
        public string ErrorCode { get; set; }
    }

}
